package com.itheima;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.itheima.mapper")
@EnableTransactionManagement //开启注解方式的事务管理
@Slf4j
@EnableCaching // 开启Spring Cache注解缓存功能
@EnableScheduling // 开启定时任务
@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true) // 开启权限认证
public class HealthApplication {

    public static void main(String[] args) {
        SpringApplication.run(HealthApplication.class, args);
    }

}

